Changed the logic for library translation in ALLPATHs