Set up commands by file per directory