This centralizes the property and removes one more dokku-specific property from the app environment variables. Closes #5049
The dokku-retire call needs two passes because a later image was a child image of test-app:2.