sourceDirectory is always not null so sourceDocumentName test should be done before
Merge pull request #49 from rmannibucau/refresh-single

sourceDirectory is always not null so sourceDocumentName test should be before

Great, thanks!