removed unused initializer
diamond operator
added getRelativeOrAbsoluteFile helper
extracted command finding logic to a CommandFinder