Added default push strategy
Improved to use perl instead of sed for osx compatibility