Fix path containing space bug for default mac users

Cscope cannot handle space in the path, while return value of os.getcwd() in Mac usually contains string "Macintosh HD", which has a space inside. Instead, the shell command "pwd" walk around this problem. This fix let mac users take pwd command instead of os.getcwd().