Updated validation of remote path