Add check for existing targets in console command

@phpnode useful e.g. in puppet environments that require one-off creation of mappings or imports.