fixing a small bug in UploadResource that caused runner.jar to be treated as a directory