Fix #45 executing of commmands when cwd is different.