more fixes to handle install versioning, move copy_null_terminated_string_array to libericstools since it's faitly generic