Set the test command depending on the file's path

Not the directory structure
Also, remove support for test/unit directories, I'll add it when I need it