simplified the -S option in the shell as the path creates problems. also moved it up as otherwise it was an option to the bash shell