Changed baseDirectory to baseDirectories.