Fixed an issue when dealing with spaces in filenames. A new command type
is now introduced.