A more compatible way of checking for an empty string.
Add quotes around the variable. It's safer.
Merge pull request #1154 from sjwilks/submodule_tool

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