Added build scripts
Fixed invalid return code of 0 when an exception occurs