script: trivial file check before cp