Fixed BUILD_MODE bug
'up' is now treated as update.