Fix segfault when dofile() called within _premake_main()