add path variable 'dirBase' to ps structure