Remove bashism, fix indentation