Fixed mkdir nesting. Move hidden file creation inside create_entry() for both cache and non-cache(to grab parent before freeing it).