curl download seems to ends up in the wrong directory