improved sorting of files
autocomplete base dir with slash if missing
add optional file filter