Trim backslash from commands instead of adding space

This solves a problem on Mono where the path would be created as
specified (i.e. including the spaces).

The spaces are only necessary to avoid an ending backslash escaping
the quote char on Windows. Trimming the backslash has the same effect.