Extend world files support to upcase basenames.

Added test cases and coverage for all world file combinations.