Controlling supercurrents and their spatial distribution in ferromagnets