Check if `make distclean` should be run before configuring packages such as libyaml.

Check if `make distclean` should be run before configuring packages such as libyaml.

[See issue #1437](https://github.com/wayneeseguin/rvm/issues/1437)