The quick workaround for me was to define bash as the specific shell: `#!/bin/sh` -> `#!/bin/bash`. This might affect Ubuntu also.