quote ' inside '...' and make sure shell isn't eating \ by using perl here.