don't always generate gem functions

If the src and mrblib directories of a mrbgem don't exist or don't
include "usable" files (for tools like mirb), then functions for gem
initialization and finalization don't have to be generated.
Merge pull request #2503 from cremno/dont-always-generate-gem-functions

don't always generate gem functions