title: rebar generate error
body: <p>I'm attempting to use <code>rebar</code> to generate a node, and I've followed the instructions from <a href="https://github.com/basho/rebar/wiki/Release-handling" rel="nofollow">here</a>.</p>
  
  <p>Running <code>rebar get-deps compile</code> works fine, but running <code>rebar generate</code> gives me</p>
  
  <pre><code>ERROR: Unable to generate spec: read file info /home/inaimathi/common/rebar.config~ failed
  ERROR: Unexpected error: rebar_abort
  ERROR: generate failed while processing /home/inaimathi/common/rel: rebar_abort
  </code></pre>
  
  <p>Odd, given that <code>rebar.config~</code> shouldn't figure anywhere in the <code>generate</code> process. Removing <code>rebar.config~</code> and trying again gives me the same error, but relating to <code>rebar.config</code> instead.</p>
  
  <p>My <code>rebar.config</code> looks like</p>
  
  <pre><code>{sub_dirs, ["rel"]}.
  {lib_dirs, ["deps"]}.
  {deps, [{erlsha2, ".*", {git, "git://github.com/vinoski/erlsha2.git", "HEAD"}}]}.
  </code></pre>
  
  <p>and my <code>reltool.config</code> looks like</p>
  
  <pre><code>{sys, [
         {lib_dirs, []},
         {erts, [{mod_cond, derived}, {app_file, strip}]},
         {app_file, strip},
         {rel, "common", "1",
          [
           kernel,
           stdlib,
           sasl,
           common
          ]},
         {rel, "start_clean", "",
          [
           kernel,
           stdlib
          ]},
         {boot_rel, "common"},
         {profile, embedded},
         {incl_cond, derived},
         {mod_cond, derived},
         {excl_archive_filters, [".*"]}, %% Do not archive built libs
         {excl_sys_filters, ["^bin/.*", "^erts.*/bin/(dialyzer|typer)",
                             "^erts.*/(doc|info|include|lib|man|src)"]},
         {excl_app_filters, ["\.gitignore"]},
         {app, common, [{mod_cond, app}, {incl_cond, include}, {lib_dir, ".."}]}
        ]}.
  
  {target_dir, "common"}.
  
  {overlay, [
             {mkdir, "log/sasl"},
             {copy, "files/erl", "\{\{erts_vsn\}\}/bin/erl"},
             {copy, "files/nodetool", "\{\{erts_vsn\}\}/bin/nodetool"},
             {copy, "files/common", "bin/common"},
             {copy, "files/common.cmd", "bin/common.cmd"},
             {copy, "files/start_erl.cmd", "bin/start_erl.cmd"},
             {copy, "files/install_upgrade.escript", "bin/install_upgrade.escript"},
             {copy, "files/sys.config", "releases/\{\{rel_vsn\}\}/sys.config"},
             {copy, "files/vm.args", "releases/\{\{rel_vsn\}\}/vm.args"}
            ]}.
  </code></pre>
  
  <p>(entirely <code>rebar</code>-generated except that I had to add <code>{lib_dir, ".."}</code> as per the instructions I linked).</p>
  
  <p>What am I doing wrong?</p>
  
  <hr>
  
  <p><strong>EDIT:</strong> I should mention the basics, given that I have no idea what's going wrong. Erlang R15B01 out of the Debian Wheezy repo running on a 64-bit core i3. I did a manual pull and build of rebar from <a href="https://github.com/basho/rebar/" rel="nofollow">the basho repo</a>. Not sure if anything else is relevant.</p>
  
  <p><strong>EDIT2:</strong> The same thing happens with the pre-built version of rebar found at <a href="https://github.com/downloads/basho/rebar/rebar" rel="nofollow">https://github.com/downloads/basho/rebar/rebar</a></p>