This works however I would like to do it only if it is the only .jpg for the given directory, the one below will just rename them all to cover.jpg, overwriting the other fil