Fixed issues with quoted filenames on the command line. Also fixed path handling.