more reliable calculation of baseUrl for persistence jars