Added a check for gem/standalone.