Fixed build script. Simplify input if no equals sign is found.