passing the dir vars into the ruby scripts