moved utility functions remoteFileExists and remoteDirExists to _util.inc.php