Resolving NPE caused by not setting source directory. Spelling fix.