Fixed modulepath and missing dirname