Change ispath to isfile in loading.jl to prevent directories breaking file load