Properly manage overriding of -l argument onto --rootmap-lib argument

there was a flaw in the logic. The full path of the -l argument was
considered as the library for the rootmap.