If the paths are hardcoded, you could just try replacing /usr/ with "$out/". It usually helps for most non-configurable install scripts…