Fix bashism
Update documentation