fixing require statements when gems aren't available