Improve the permission denied error message

Closes #6