Move echo_green & echo_red functions to above exit_with_error to fix command not found error