Ignore temporary files

In addition to the filenames which start with a '.' this select method also skip files which end with a '~' (widely used by editor as a temporary file)