Fix background command invoking
Fix '--git-dir' option not expand correctry.