Fix EZP-21751: kernel::runcallback() does not always return to correct directory

https://jira.ez.no/browse/EZP-21751

This PR is taking over #703. I amended commit from @gggeek and mainly added some logging and fixed relative directory configuration we had in EzPublishCoreBundle.