Fixing path issue in touch and copyFromLocal commands