Moved failing-to-be-local _APP variable into global-and-proud variable, containing the name of the project`s Erlang application.
Made use of newly-introduced $APP variable to simplify code a bit.