SLING-1385 : Recompile java scripts on modifications and avoid periodic check - fix error handling and sync problems.