Fix for being unable to open directories with a full stop in the name.