fix to allow directories starting with hyphens