Properly handle string variables in shell resource files.

Debian and Mac OS X are less tolerant towards incorrect shell scripts
(yeah, I know, Arch sucks).