correctly split env vars and bashism