Added the possibility to optimize files without .json build file