csh detection bug

Checks if shell property exists and used basename for command name.