Some semblance of security added to stop naughty pwd exploits. Should probably use execl instead of system()