Fixed an execution path issue and added support for perl and sh/zsh script