The previous method had a few too many nested if statements, making it difficult to track when and where the function stopped executing.
Rather than have this live in 00_dokku-standard, move it out so that it may start to support various other features around the app.json manifest.