Improved nosetests integration (makes sure there is a space at the end of the test_command)

Added the ability to clean up settings entered by the user. For example, if test_command is set to "nosetests -vv" it won't run the tests because it no space is present. So I've added code to add this in for nosetests commands.