bugfix for bin/smartcd