autotest: Add code to detect if a hard link is not allowed (for VM's).