issue #1203 moved import of get_proper_case_filename in preferences from global to within the functions that use it to fix build chicken+egg