Changed the way locales folder is detected by removing first the
{locale} placeholder then check for existence.