take into account cwd in dest