Made library inclusion into the app bundle more stable and modular. Avoid unnecessary checks in bam.lua.