Added a change directory call so that scripts are accessible.