Add mksdcard script
Bugfix in get_machine