How about checking for `/foreman/` (with the trailing slash)?

Or I could add everywhere and only if `/foreman/` was already present, I could issue a warning message.