Add quotes and an informative error message

Since [ -x  ] is true, but [ -x "" ] is false