in reply to Local tests reveal no syntax error but...
Are you sure you want it to die when it's finished? I know you said "compilation errors", but it may still be worthwhile replacing die with exit, i.e. doing a normal termination instead of an abnormal one.