update dist to work properly with libraries and relative path