implement which function for finding command paths, add a unit test and use which function for checking whether selected module command is available