changed to copy the rpm to a temp directory first