Fixed build script

I probably should have tested the fallback modes...