made script more flexible, parent dir doesn't need to share an identical name with the add-on dir