Add detect-hardlinks.sh script