adding chdir script