changed behavior of prefix and dstdir