Replace " with ' and printf with echo to fix a bug

The bug was that printf was interpretting %'s. (Correct but not wanted.)
This is both a fix and a general improvement.