[TASK] Cleanup for LocalDriver

* Introduce use-statements for namespaces
* Remove a return-statement without effect
* Move a path-calculation until where it is really needed

Resolves: #62104
Releases: master
Change-Id: I501c5235d2b02ba7416a1eed398735d89c428546
Reviewed-on: http://review.typo3.org/34006
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>