Add terminal support for background jobs and 'cd' of working directory