Allow for more dynamic import extensions

Will allow for more customisable and valid extension support.