select the right app in the file list editor sidebar

Fix issue introduced in https://github.com/web2py/web2py/pull/322