Make the check for an empty string more compatible with linux distros

The current method would work but it depends on what a given linux distribution points /bin/sh to. In my case Debian was failing this test, bash is fine though.