more accurate safe_mode check - refs #2258
Merge pull request #2446 from owncloud/fixing-safe-mode-check-master

more accurate safe_mode check - refs #2258