Improve permission handling in Pop\File