new way to chdir to script's directory