cleanup debug cmd and mod the gitignore file to allow /upload to be present