Change terminal directory when Sublime buildsystem opens a terminal window?

This is the buidsystem for sublimetext 3 I am using to compile and run cpp files . But the working directory is still my home folder . If I use "ofstream" to output any file the file is generating in my Home folder(mac user folder) . I want to generate the files right where my cpp files are. I tried the code above braced in /..../ but didn't work exactly . But if I open a terminal window manually in the cpp files directory and then type in compile and run command manually only then it is generating file in that directory . What should I add to the buildsystem so that the terminal starts with the directory where my cpp file is automatically??

{
    "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],
    "cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && open -a Terminal.app '${file_path}/${file_base_name}'"],
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c, source.c++",

    "variants":
    [
        {
            "name": "Run",
   //"cmd": ["cd /Users/ashrhmn/Desktop/Files/Sublime/Files "],
   "cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && open -a Terminal.app '${file_path}/${file_base_name}'"]

}
]
}