Made engine compile script if compiling is possible