fix for remote paths. #551