Fixes subprocess calls