Even the variables side in bash comparison should be enclosed in quotes, ie
```
if [ "$USER" != "" ]; ...
```
to prevent syntax errors if $USER is not set (as it would be if xmlrpc_uri line is not configuration file).