The sleep option is good enough for me, however I was not able to get it work. Regex matching is correct, included script is working correctly.
However if I copy that script to another location and modify it, it is not working.
Really hard to tell what part is not working, because I could not find a way to get some output from this script run.
It might be php import related (modified import statements to be correct) or any other script error.