Basically I need to run the script with paths related to the shell script file location, how can I change the current directory to the same directory as where the script fil
It might look ugly depending on how it was invoked and the cwd but should get you where you need to go (or you can tweak the string if you care how it looks).