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
`sh` does not complain if you export a variable that is not defined. Should we mimic that behavior?