Ruby version test corrected (because of sed posix re problems).