Update engine.js

use require.resolve to find jade