use File::ExtAttr instead of shell commands