Don't remove build dir after failed install

Closes #1348, thanks for reporting
Merge pull request #1506 from OCamlPro/fail-build

Don't remove build dir after failed install