Gas prices turn upward after long skid