setting files mode with remote_directory resource