I use the same approach as you do but without phing and inspired by WePloy. https://github.com/rlerdorf/WePloy