silently ignore apc_store returning false

this silently ignores the "Failed saving metadata to metadataCache" exception when apc is used.
create log folders with 0777  mode

0777 should be the default but is modified by umask.
This fixes creation of folders owned by www-run user that can't be deleted by cli user
workaround problem when image is in cards and not selected

This is not entierly correct, we don't get the proper contentWidth in that case. But we don't have it :/
Get content width correctly even when selected component is not an image component
improve check-config

- don't check for ls, that won't work on windows - instead try executing php --version
- if setlocale doesn't work treat that as a warning
chck config: improve check for git

- we don't depend on git, you can use any other deployment method if you want to hurt yourself