Improve finding best shell for running tests