Fixed initialise ~ path when starting new child process