fix removing binaries when removing ruby, fix #1529
also make sure gemset dir is created