Updated build script to perl syntax