check directories for invalid characters

2 jobs for main in 31 seconds (queued for 12 seconds)