Speedup profile creation

Use os.access() to test if the directory can be read. The `listdir` approach is
very slow.

Fixes #237.
Merge pull request #238 from hashdist/profile_speedup

Speedup profile creation