cleanups in the directory creation rules