set abspath to target as easrly as possible; use target_name for checking if installed