Fixed tag directory creation bug