Simplify app css locating for layout pages

I think this is better then #3011 and this should also be a fix for #3004 

@icewind1991 @zimba12 @eMerzh @tanghus