Remove pointlessly overcomplicated file path code.