Add debug output in development mode.
Fix some capistrano bug.