update gitignore
Fix port checking to accept the new random port setting.