Improved nosetests integration (fix spacing issue)

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.