updated shell script to change to dir