Fix not handling paths correctly.
Fix gcc version check.