Don't remove build dir after failed install

Closes #1348, thanks for reporting