lib/functions.in: fixed .la file correction when moving them to /usr

This fixes the case the 'dependency_libs' entry had more than one .la file
without /usr prefix listed.
By using the former simple sed pattern only the first listed path was
corrected.