Added automatic load/save of folds, and correct view directory for windows.