temporary file created by bash script is now in same folder as js script