Fix for dd problem

The last commit corrected the error with the Mac OS, but stopped
working in Linux.