fix random bundle command issues related to permissions