Avoid errors when not in dev/test rails env