Fix 'pkg install [-f] pkg'

Fixes:	#527