Fix using a relative target directory