Moved the call to do_hard_links() and the final directory-permissions