Fixed issues related to launching unittests when selecting folder (which broke because of recent files to run __main__ in a folder).