Replace sync-links bash script with a Ruby one