Rewrites scheduler task to work with both, TYPO3 4.x and 6.x