fix the catch all function in app.js to work in 'dist' folder