Make sure filepaths are expanded on JRuby

Fixes the build on JRuby