Refactor build_common_paths
Add --template flag to new/play to accept custom templates