Trim current directory from target