local dir=${f%/*}
local fn=${f##*/}
if ! [ -f "${root}/${f}" ] ; then
f="${f}$(get_exeext)"
fi
if [[ -L ${root}/${f} ]]; then
# rewrite the symlink target
local target