Added a conditional to also check for package name representation
as well as directory name representation of tested Python modules.