Simple solution to prevent multiple executions using flock