Improved FileIO unlinkDir method

Now hidden files get removed properly.