Fix crash when subdirs present in source
Fix relative links when there are subdirs in --source
Merge pull request #1 from seangarner/subdir_fix

Fix crash when subdirs present in source