Added support for filenames with spaces by using escapeshellarg() to evaluate and treat string as literal.