Fixed bug not compiling bpm modules after enabling

Also prevented unexpected behavior when nothing is enabled.