Fix for start-up error.

Fixes "Can't locate object method "autoflush" via package "IO::File"." error on start-up on my Gentoo box.
Merge pull request #1 from kristapsk/master

Fix for start-up error.