Fixing vscan, corresponding tests, and one bug in port.rb