See https://stackoverflow.com/questions/19456518/invalid-command-code-despite-escaping-periods-using-sed