Changes to allow command line interface in no profile mode to process single files as well as folders