sam generates $home/sam.save for modified files. it expects /sys/lib/samsave to be executable to restore the modified files.