var appDir = "/home/user/p1";
You don't have local access to files anyway, what is the point of this line? The appDir option is for the case that all your code in within a subfolder below your index.js. In this case you don't need it.
files: "files_",
This makes no sense as well. The paths object contains only module paths, not folder paths.
The options are documented here.