fix MAX_RUBY_APP_BY_USER when using env variables

it needs to be converted to integer