"VERSION: No such file or directory". In case when './rebar compile' shuts locally or as a rebar's dependency

### ./rebar compile in case when Elixir is dependency

GIVEN:

          couch_normalizer[0.5.x]$ cat rebar.config 
          {deps, [{ elixir, "0.8.0", {git, "git://github.com/elixir-lang/elixir", {tag, "v0.8.0"}}}]}.

          {lib_dirs, ["deps/elixir/lib"]}.

WHEN:

          couch_normalizer[0.5.x]$ ./rebar get-deps

          ==> couch_normalizer (get-deps)
          ERROR: Dependency dir /opt/datahogs/couch_normalizer/deps/elixir failed application validation with reason:
          {version_mismatch,{"/opt/datahogs/couch_normalizer/deps/elixir/src/elixir.app.src",
                             {expected,"0.8.0"},
                             {has,"cat: ../../VERSION: No such file or directory"}}}.
          ERROR: 'get-deps' failed while processing /opt/datahogs/couch_normalizer: rebar_abort

THEN:

          couch_normalizer[0.5.x]$ cat deps/elixir/ebin/elixir.app 
          cat: deps/elixir/ebin/elixir.app: No such file or directory


### ./rebar compile from Elixir HEAD

GIVEN:

          elixir[az-no-such-version-file]$ cat src/elixir.app.src 
          {application, elixir,
          [{description, "elixir"},
           {vsn, {cmd, "echo `cat ../../VERSION`"}},
           {modules, [
          	elixir
            ]},
           {registered,[elixir_code_server]},
           {applications, [kernel,stdlib]},
           {mod, {elixir,[]}}
          ]}.

WHEN:

          elixir[az-no-such-version-file]$ ./rebar compile

THEN:

          elixir[az-no-such-version-file]$ cat ebin/elixir.app 
          {application,elixir,
                       [{description,"elixir"},
                        {vsn,"cat: ../../VERSION: No such file or directory"},
                        {modules,[]},
                        {registered,[elixir_code_server]},
                        {applications,[kernel,stdlib]},
                        {mod,{elixir,[]}}]}.


### make compile from Elixir HEAD

GIVEN:

          elixir[az-no-such-version-file]$ make clean 

WHEN:

          elixir[az-no-such-version-file]$ make compile

THEN:

          elixir[az-no-such-version-file]$ cat ebin/elixir.app 
          cat: ebin/elixir.app: No such file or directory