Fixed the script as per latest powerline script

I added environ.get('_POWERLINE_MODE') to both the places as per the latest powerline code. Also there's no need for environ.get('_POWERLINE_MODE', None), as None is the default anyways.