Fixes blank filedir.

Fixes an exception caused by the filedir coming back blank. (At least on windows.)
Merge pull request #11 from Boggart/filedirfix

Fixes blank filedir.