Fix scripts for openwrt mac refactoring