Fixed an edge case where an extension might be incorrectly reported as supported on Linux if its name was contained at the end of an another extension's name. Also improved the error handling to be a bit more specific.