distro: Decouple shared and static builddirs