Moved require into body of rake task