Fixed another issue with ruby autocommand