Removing /var is also correct as if you check AEM Project Structure
Mutable versus Immutable Areas of the Repository
The /apps and /libs areas of AEM are considered immutable because they cannot be changed (create, update, delete) after AEM starts (that is, at runtime). Any attempt to change an immu...