Nodejs function to execute child process in promise style