[makeself] generate default `makeselfinst` script

The logic to copy a self-extracting archive’s file into place is general
enough to be shared among projects.
Merge pull request #378 from opscode/schisamo/makeself-fixes

[makeself] generate default `makeselfinst` script