Fixed bug modules override

$paths not $pathes :)
also you can go without that variable