foreman: fix controller_name computation

Change-Id: I1bc8c57aa538bd1be3943a2c4553b54d56ffccac