Fix typo, use bash expressions instead of basename