Don't include function if it doesn't exist

Only include the ruby function if it is present.