Added a separator between the work dir and application name.
Fixed unit test.
WorkDirs both ending with a '/' and not are supported now.
NPE prevention when workDir is null.