Make upstart's noBackground check more robust

If you use any JSON tool (e.g. jq) to work with the config
file, you'll likely end up with whitespace between key and
value. The upstart script previously failed to rewrite the
noBackground setting in this case, which has been fixed
with this commit.