cmake: fix qi_install_data() in some corner cases

for some reason get_filename_component(_abs_path "data/*" ABSOLUTE)
returns an exiting directory on windows, causing
the installation to fail later.

test for "*" in arguments earlier to avoid this

Change-Id: I50db574821fe540d4d79286bf80058ef7e5fb478
Reviewed-on: http://gerrit.aldebaran.lan:8080/15588
Tested-by: dmerejkowsky <dmerejkowsky@aldebaran-robotics.com>
Tested-by: gerrit
Reviewed-by: dmerejkowsky <dmerejkowsky@aldebaran-robotics.com>