Use single brackets because of bash 4's bug.