changed getting path with expand from bufname

because rspec may not be executed using relative path.