New algorithm to detect the pretense of the application bundle in the runtime or application directories

The new algorithm is using a pattern matching based on the file name, which is much faster than the previous algorithm checking file content.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
Extend waiting time in the cache test

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
Change a logged message.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
Change when the logs directory is deleted. Indeed on Windows the file cannot be deleted until the log target switch (as we still have the file handler).

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>