cleaned up and move processor mapping logic to ProcessorFactory
Fixed relative path. Allow cobspec to set directory