Fixing tild prefixed directory and file autocompletion. Adding partial path autocompletion.