Fixed bug with file field tab completion not properly handling '~' (home directory) or directories containing a single file.