added rstrip to pwd.