Updating bin script to work in a gem environment