try to reproduce the quirky behavior of bash/execve for running scrips