Includes fix #9 claimed in the previous commit. Permission paths are saved correctly. Fixes #12