updated compileAdmin() for 4.1 and added git functionality