improve buildswift script