Variablize file listing and fix active listing highlighting