Fixed g cmd, updated mkfile for multiple platform support