Remove dependancy on bc
Fix script continuing after failed deploy