Bug fix and new compiler detection

-Fix to get subcode q
-Testing new method for detecting compiler. Not perfect, but at least we
don't have to change hard-coded compiler locations anymore.