fix swift path issues with list_directory