Something is wrong here. In line 40 we install everything and then on the next line we take (again) everything under lib/ to another path. Also the mode here is different form the mode in the files section (644 against 755).