Fixed issue in index action if server started with cwd not __dirname