Fix prepare_release to work when a dependency is removed

This target was breaking when attempting to prepare a release when a
dependency had been removed. The reason was that the compile step was
using the locked rebar config which contains a reference to the stale
dep.