Add a hook to solve the problem of not being able to start some startup scripts for applications without shebang Log