Improve get all workflows script