Set cwd automatically in .sh scripts