Bug-fix: require calls in single-chunk situations were not working in some circumstances.
Added option to set the default extension appended to require paths when no explicit extension is provided.