added support for directories with - in their names