[BUGFIX] Properly check permissions with read only file mounts