Fix warnings about escaping and use correct single quotes

The code as-is caused warnings for me about unrecognised escape sequences. Also, the comment/uncomment commands caused errors due to the strange quote characters used. This is when running on a Debian/Ubuntu system.

This pull request fixes both these issues. I have tested both commenting and uncommenting lines and it now works correctly for me.