Added check to create repositories folder.