fix Boost sanity check, only check for libboost_python.so if Python module is loaded

Sanity check for non-Python Boost easyconfigs now fails because of this.