Added more dependencies.
Create tickets on order update, not checkout complete.
It seems chmod() needs a real path to the file.