Correctly escape printed command