fixed autocomplete on unix, added "w #" command support