escape backslash in case you are using Windows, to avoid \x errors
fix perms