Minor miscellaneous cleanup.
	Replace PATHLEN with POSIX PATH_MAX
	Use access syscall instead of trying to open the file and closing
	Make plugin_exists take a const name
	Replace obsolete curses fixterm and resetterm with current reset_prog_mode and reset_shell_mode
	Eliminate uninitialized variable warning for temp saved currow and curcol