Checking for invalid target specifications.