fixed auto update for Mac (issue #248)