Fixed unterminated sed command
Added Apache 2 license header
Suppressed dd when reading block device