add support for bower, conditional require