Robust fix to stopping infinite imports of parent folder.