Make rake task more compatible with foreman.