changed two scripts in order to have a successful build, when launched from cron