Refactor string-based path building to Path.resolve()