Approximate identities in variable $L^p$ spaces