cache gulp

Move caching to later, to cache gulp as well.
Check if gulp exists before trying to install it.