replace assertion by raising execption

if the newly builded libraies directory is not found. test raise a
DistutilsOptionError instead of an AssertionError