Fixes #14 : list_directory always return empty list

Any thought ?