Added function for creating remote directory