Fix dynamic scope lookup in maintenance.pp

Class-level variables cannot be looked up by defines that are defined
within the class (as opposed to actual resource declaration).

Change-Id: I2855d279cd974ba5cacdb6c3c376c63b5b4b0bdb
Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>