Permissions Bugfix

Fixed what looks like has been a bug in the permissions checker since
the original re-release. Whoops. Shouldn't be an issue, now.

Also, fixed a bug that would have occurred in the new version, with
import/export.