Get absolute path for prefix to fix https://github.com/JuliaLang/julia/issues/5837