Fix shell name check in profile

Extract actual filename from shell command.