Updated the shell script for changing into different directories