Fix compatibility with bash