Fixes blank filedir.

Fixes an exception caused by the filedir coming back blank. (At least on windows.)