add custom sanity check and guesses for PYTHONPATH and LD_LIBRARY_PATH