Fixed None checks in source and added trailing slash to error message for remote root directory to better reflect what's happening.