Improve 40d detection. Hat tip Quietust.

http://what.thedailywtf.com/t/go-dwarf-fortress-weird-data-formats/5236/18?u=ben_lubar