using os.path.join to join paths instead of string concatenation
added a space
replaced has_key syntax
Force flushing of print statements.
Merge pull request #257 from mit-crpg/ctests

New ctest regression test suite to replace nosetests
Don't use escape sequences if being redirected.
merged develop into nndc_tests