in reply to chdir through multiple scripts

Check out this module: Cwd to print current working directory see the example code.

Update: Anon Monk is right. My intent here was to show you how to prove it to yourself.