Fix for reading files with no read permission