Added directory rename function