Save untitled file before compile and make sure it was saved