Remove dir from the parser