mg_stat() fix for paths like X:\