Set pwd to none when empty