The list_directory command wasn't parsing newlines correctly, does now!