Remove dots from definition directories so that hostname is set properly