#620: Bash: get filename without the last file extension

Resolves #620.