Fixes some file system stuff.