automatic bash path generation