remove trailing slash from current directory in prompt