fixing paths in remote script