if targetpath doesnt exist, create it