change the cwd to main script dir