libraries/singularity: [bugfix] use app.config in getConfig()

also added a regression test