Ruby implementation of directory tree comparison utility