remove unneded bash dependencies
bugfixes to make it compile again :\