fix executable bit when unpacking distribution
improve update of resources