Bugfix for ls-remote