using dirname to reference relative files