Fix wal-e commands
Move upgrade to after indexing.