Replace FindFirstFile with FindFirstFileEx

Now uses a larger buffer for directory queries.
Also fixed some whitespaces