Quick fix for checking Permissions if using PEX