DOC: improved checking of dependences and, if required, modifies bash_profile.