Issue#1 Fixing command line parameters and defaulting to tmp directory if the working directory does not exist