Use wxFileName for path manipulation