Added functionality to set datadir in sysconfig file for managed_repo installs. #318