Update index.js

When I used express-autoroute in Microsoft WebMatrix, the path returned from require.main.filename is not correct, so maybe we need get the path from current working directory. But I don't test it in Linux environment, I'm not sure it will also work well.