I probably don't understand all of the nuances of that code, but one potential fix is simply to pass a benign argument to mv. Something like if ! $ldfile /bin/mv --version >/dev/null 2>/dev/null; then ... Alternatively, it may be more robust for the script to simply create a file to mv (for example, if it's possible to have a /bin/mv that doesn't accept --version).
-- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org