Correcting directory parser.