Moved generate_deb to it's place