fixed subshell handling within compound command