Add ability to use require as function for both exposed modules and regular modules