Custom upgrade path from env and better debug output