[setup] complete `get_src_dir` function with help of subfunction
[setup] added command line argument parsing