fixes #2434 - foreman-debug script