Fix weird remote directory entries

Signed-off-by: Gerco van Heerdt <gercovanheerdt@gmail.com>