Add '--in-place' option for "kpm wrap"

parent #964 

Functional tests for `kpm wrap --in-place` will be added after #956 is merged.