Final fix for subshell execution