Added output directory creation
Fixed typo in IDENTIFIER rule