ota_from_target_files: fix symlink check for MacOS X