if {![string length [set projectdir [punk::repo::find_project_root $testdir]]]} {
if {![string length [set projectdir [punk::repo::find_candidate_root $testdir]]]} {
if {![string length [set projectdir [punk::repo::find_project $testdir]]]} {
if {![string length [set projectdir [punk::repo::find_candidate $testdir]]]} {
error "newmodule unable to create module in projectdir:$projectdir - directory doesn't appear to meet basic standards (/src, src/modules, src/lib & /modules must exist, must not be a system path such as /usr/bin or c:/windows)"