Fixed path check in partition_module (useful when testing cnchi)