Fix bugs with bdist

Signed-off-by: Daniel Francis <francis@sugarlabs.org>