Execute main.js if argument is a directory.