make distcheck functions for automated build