Check that Rails loads before running rake tasks