Handle sub-directory during export