Jibri recording gets saved but throws error that "finalize.sh" is not found

I have set up Jitsi Meet and Jibri on different servers. Jibri is setup on Docker. Recording is working fine and getting saved but I the finalisation script is not getting run. I see an error “No such file or directory” but the file does exist and for testing, I have given full permission. Please let me know what might be wrong, appreciate your help.

Excerpt from .env

JIBRI_FINALIZE_RECORDING_SCRIPT_PATH=/config/finalize.sh

Exception from log

java.io.IOException: Cannot run program “/config/finalize.sh”: error=2, No such file or directory
jibri5_1 | at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
jibri5_1 | at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
jibri5_1 | at org.jitsi.jibri.util.ProcessWrapper.start(ProcessWrapper.kt:88)
jibri5_1 | at org.jitsi.jibri.service.impl.JibriServiceFinalizeCommandRunner.doFinalize(JibriServiceFinalizeCommandRunner.kt:47)
jibri5_1 | at org.jitsi.jibri.service.impl.FileRecordingJibriService.stop(FileRecordingJibriService.kt:233)
jibri5_1 | at org.jitsi.jibri.JibriManager.stopService(JibriManager.kt:263)
jibri5_1 | at org.jitsi.jibri.api.xmpp.XmppApi.handleStopJibriIq(XmppApi.kt:344)
jibri5_1 | at org.jitsi.jibri.api.xmpp.XmppApi.handleJibriIq(XmppApi.kt:238)
jibri5_1 | at org.jitsi.jibri.api.xmpp.XmppApi.handleIq(XmppApi.kt:219)
jibri5_1 | at org.jitsi.xmpp.mucclient.MucClient.handleIq(MucClient.java:541)
jibri5_1 | at org.jitsi.xmpp.mucclient.MucClient.access$400(MucClient.java:51)
jibri5_1 | at org.jitsi.xmpp.mucclient.MucClient$3.handleIQRequest(MucClient.java:504)
jibri5_1 | at org.jivesoftware.smack.AbstractXMPPConnection$3.run(AbstractXMPPConnection.java:1565)
jibri5_1 | at org.jivesoftware.smack.AbstractXMPPConnection$10.run(AbstractXMPPConnection.java:2143)

It was due to a simple error, I had not mapped the file path to Docker volume. Fixed it now.