Hello Guys,
Got caught out this afternoon by a file which was called 'example (1).pdf' whereby the path is not escaped before sending to bash and therefore throws a syntax error.
I'm proposing that all commands are sanitised/escaped before being sent to bash to prevent this from happening in future.
If other people are happy this is the way to go I'll wrap up a pull-request with the fixes.
Robert