Check if content in nosync is a directory. Fixes #416