fixed how directories names are sanitized
fixed non-existent name
another oops