Allow script to be ran when visiting a file in the project; current working directory does not always reflect project root.