Added local compile capabilities by specifing local repo directory. Added common curl params.