Fix test all

It wasn't working unless a test file was open, as the file is used to determine which framework is being used. This change detects the framework based on directories in the project directory.