Fix bad directory for building ISO
Add environment preparing, prepare functions to compile code.