Fix loading of relative paths