Fix bad error message for empty remote path. Fix for bb#492.