fix Qt file name extension bug in Mac