switch to target dependency from if condition to verify if package file exist.