separate ruby and java sm files
adjust build to better support polyglot project