Fix .localhistory does not exist bug when changing to file attributes to hidden