[TASK] Cleanup require and require_once

* Use DIR instead of dirname(FILE) (since TYPO3 5.3.0)
* Use DIR for refering to relative paths
  to make sure the correct file is included (no search in path)

Resolves: #47205
Releases: 6.1
Change-Id: I0b78e056bfc6c281a7d1aae5928345d653e93d6d
Reviewed-on: https://review.typo3.org/19954
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn