Return proper value in sha256_fd()
Fix 'pkg install [-f] pkg'

Fixes:	#527
When checking for newer pkg version, disable -f

Fixes:	#528