fix how the pod is applied
prevent nil exception when files are exactly alike
expand paths