Pass rails root to the scripts.
cd to Rails root before trying to bundle.