solr: ensure users use an absolute path.

Otherwise solr tries to load the given path relative to its home directory in the cellar.

Closes #30584.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>