Completely reworked mk.sh, moved archive sources to library resources folder