Fix files/show permissions check, fix #569.
Merge branch 'stable-2.0'