Check for MiKTeX and custom build files before setting engine