improved robustness of `leap new`