Add env chech in Rakefile