make require and module.exports statements conditional