Improvements to compiler detection, added custom sh snippets