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.

I did some tests, but if I missed anything, please tell me as I'm not really familiar with the internals of the build system yet.