code simplification when checking if json needs refresh
code simplification when checking if json needs refresh

Also, regenerate the json even when not in Dev mode: that's better
than recomputing from source each time.

polux/webPLM,polux/webPLM,MatthieuNICOLAS/webPLM,polux/webPLM,BuggleInc/webPLM,MatthieuNICOLAS/webPLM,polux/webPLM,MatthieuNICOLAS/webPLM,BuggleInc/webPLM,BuggleInc/webPLM,BuggleInc/webPLM,MatthieuNICOLAS/webPLM,BuggleInc/webPLM,polux/webPLM