replaced checking with stat cmd by "cp -u" cmd