Fix regression when copy: is used for a relative path