fix for installing ucore into subfolders, also fix ~UserDir