Here is a proof using nets: By Lemma of Zorn we can assume that $I$ is a maximal ideal and hence prime. Thus, if $f \in I$, then so is $|f|^2 = \bar{f}f$ and hence also $|f| \in I$.
Define a direction $\preceq$ on $I$ by $f \preceq g$ iff $|f| \leq |g|$ pointwise.
Then $(I,\preceq)$ is a directed set, since if $f,g \in I$, then $|f|+|g| \in I$ and $f,g \preceq |f|+|g|$.
Now, for each $f \in I$, there is some $x_f \in [0,1]$ such that $f(x_f) = 0$, because otherwise $I$, containing an invertible element, could not be maximal.
Then $(x_f)_{f \in I}$ is a net and since $[0,1]$ is compact, it has a cluster point $x \in [0,1]$, i.e. given any open set $U$ with $x \in U \subseteq [0,1]$ and any fixed $g \in I$, we can find some $f \in I$ with $g \preceq f$ and $x_f \in U$. We now claim: $I = M_x$.
Indeed, if there is some $g \in I$ with $g(x) \neq 0$, then there is some open set $U$ with $x \in U$ and $g \neq 0$ on $U$.
Now take $f$ as previously stated, then
$$
0 = |f(x_f)| \geq |g(x_f)|\,,
$$
contradicting the fact that $x_f \in U$.