fix patch to not strip a leading "." unless it's part of a path