Improved view filename and directory normalization.