Fixes to mkfs,ln,rm + scan_images.rb