Fix for #114 - Fix permission denied error when viewing files in user directory

Fixes #114

Also make permission error messages more informative.
Did you mean to check in the "+ i +"?