Installing Mavericks via Terminal
Possibly I am missing something here, but unless you have a very slow internet connection or none at all, recovery mode should be able to install the O/S version that shipped with the computer. The recovery partition downloads and installs the O/S for you, no terminal needed. Unless you want to do it that way as an exercise in technical exploration, this method was developed to eliminate shipping recovery media with every Mac and make the process as easy as possible.

Once that O/S version is on your Mac you can then upgrade/update to the latest version of Mavericks