normalize and renaming of proj & dirs for DocCode