Modified build configuration

becuase AppHarbor only use Release mode to publish.
Renamed the paremter.
Addressed the code analysis warning.
Slightly refactored.
Fixed the typo.