Added function to normalize a directory tree for testing