allow export line

some people want to declare vars and then export them like this:

SOME=thing
export SOME

this pull request will allow that and even validate that the var is set