more build script cleanup (still learning python here..)