Fixed typo in the tcc executable path test
Made temporary sharedir detection more robust, hopefully