Don't just create /var/run/APPNAME for rails apps
Don't just create /var/run/APPNAME for rails apps

This applies changes first introduced in 22b073d to both Procfile and rack
application types.

In addition, it makes sure that the app log directory exists, in addition to
the app run directory.

alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet