Fix rake tasks that didn't correctly load the environment

Signed-off-by: David Celis <me@davidcel.is>