Changed check for rbenv dev dir to be an directory check.