Making app_deps.erl script support releases

Assuming releases have an apps/ + deps/ structure. apps/ is optional, of
course.