Check for changes on target as well

Signed-off-by: Michal Čihař <michal@cihar.com>