Fix mcode project not being created

Able to create when loading a routine for the first time.