Using req.app.path to allow app to function when mounted. License changed to MIT.