Verify that there is a valid output URI set before trying to write any records HADOOP-81
move environment-specific settings to the top of script, set in bash vars
Merge branch 'master' of https://github.com/mongodb/mongo-hadoop