Fix remaining permissions issues and crashes.
Merge pull request #180 from jthemphill/develop

Fix remaining permissions issues and crashes.