add bundler to list of required gems only when it is needed, fix #2747