Fix dist scripts