got the printPrompt function to work properly, currently prints the machine name follwed by current directory, strcat issues and silly mistakes to blame