use app.root when mounting if available, improves #915