Removed 'basename' lines with Bash-equivalent expressions