Fixed wrong remote path in integration tests if remote path ends with /