Replace the SMH check with a generic file permission check