fix creation of internal package tree and commit