Simplified the shell script, removed unecessary steps and directory changes. Now prompt will keep you in the same place where you initially ran the command