Added a very simple locking algorithm to avoid cron overlaps
Source: http://stackoverflow.com/questions/5428631/php-preventing-collision-in-cron-file-lock-safe