linux stat bug fix again. (not actually working from linux)