Checking if PHP safe_mode is enabled. Fixes #173.