added fix for empty relativeDir